FC Coding is
One step from 1st Principles to Solution!

Home



Oil Refinery Production Model Code
to simulate a refinery's entire Distillation units
in one run.

Goal for this page: show how to simulate a refinery's entire/total Distillation units in one run.


On this page, we'll attempt to guide you through the various model routines in order to create a 'picture' for you to understand what's going on.

1. State number of plants / refineries and the number of products.

nRefineries = 22: nProducts = 33

2. Add a 'nRefineries' loop around ALL the distillation units. See the arrows pointing to new code additions.

model Processing ! All distillation units @ All refinery do i = 1, nRefineries Key point ! assume distillation requires solving a PDE or two. ! below is the bases for solving a PDE. t = 0: tPrt = tPrint do j = 1, nDistillUnits(i) Key point Initiate ISIS for PDEquations ooo do while (t .lt. tFinal) ooo

The next article will show how to tweak/optimize the results for ALL refineries.



< < Back

Next > >


 
Valid CSS! Calculus (level) Problem-Solving for Engineers & Scientists

Textbooks - Parameter Estimation 4 ODE/PDE - Signal Analysis / Spectral Estimation - Body Plasma - Solar Cell
Increasing Productivity Examples: AC Motor Design - Matched Filters - Pulse Slimming / InterSymbol Interference - Pilot (safe) Ejection - PharmacoKinetics Simulation - Business Strategies & War Gaming - BVP - Implicit Equations